package com.yangjun.common.realtimesource;

import com.alibaba.druid.sql.ast.statement.SQLIfStatement.Else;

public class ChartDefine {
	public static String CLIENT_NUMBER = "CLIENT_NUMBER"; // 访客数
	public static String CLIENT_NUMBER_DESC = "访客数";
	
	public static String OPEN_CLIENT_NUMBER = "OPEN_CLIENT_NUMBER"; // App启动用户数
	public static String OPEN_CLIENT_NUMBER_DESC = "App启动用户数";
	
	public static String NEW_CLIENT = "NEW_CLIENT"; // 新访客
	public static String NEW_CLIENT_DESC = "新访客";
	
	public static String OLD_CLIENT = "OLD_CLIENT"; // 老访客
	public static String OLD_CLIENT_DESC = "老访客";
	
	public static String PV = "PV"; // 游览量
	public static String PV_DESC = "游览量";
	
	public static String JUMP_RATE = "JUMP_RATE"; // 跳出率
	public static String JUMP_RATE_DESC = "跳出率";
	
	public static String NEW_CLIENT_RATE = "NEW_CLIENT_RATE"; // 新客户占比
	public static String NEW_CLIENT_RATE_DESC = "新客户占比";
	
	// -------------------- 渠道流量 --------------------
	public static String CHANNEL_CLIENT_NUMBER = "CLIENT_NUMBER";
	public static String CHANNEL_CLIENT_NUMBER_DES = "访客数";
	
	public static String CHANNEL_NEW_CLIENT = "NEW_CLIENT";
	public static String CHANNEL_OLD_CLIENT = "OLD_CLIENT";
	public static String CHANNEL_JUMP_RATE = "JUMP_RATE";
	public static String CHANNEL_NEW_CLIENT_RATE = "NEW_CLIENT_RATE";
	
	
	// -------------------- 会员分析 --------------------
	public static String MONTH_MEMBER_INCREASE_RATE = "MONTH_MEMBER_INCREASE_RATE";
	public static String MONTH_MEMBER_INCREASE_RATE_DESC = "增长率";
	
	public static String YEAR_MEMBER_INCREASE_RATE = "YEAR_MEMBER_INCREASE_RATE";
	public static String YEAR_MEMBER_INCREASE_RATE_DESC = "增长率";
	
	public static String ALL_MEMBER_INCREASE_RATE = "ALL_MEMBER_INCREASE_RATE";
	public static String ALL_MEMBER_INCREASE_RATE_DESC = "增长率";
	
	public static String ALL_REBUY_RATE = "ALL_REBUY_RATE";
	public static String ALL_REBUY_RATE_DESC = "复购率";
	
	public static String ALL_ORDER_COUNT = "ALL_ORDER_COUNT";
	public static String ALL_ORDER_COUNT_DESC = "购买次数";
	
	public static String ALL_NEW_CUS_COUNT = "ALL_NEW_CUS_COUNT";
	public static String ALL_NEW_CUS_COUNT_DESC = "会员增长";
	
	public static String ALL_MEMBER_INCREASE_RATE_REBUY = "ALL_MEMBER_INCREASE_RATE_REBUY";
	public static String ALL_MEMBER_INCREASE_RATE_REBUY_DESC = "增长率";
	
	public static String ALL_SLEEP_CUS_COUNT = "ALL_SLEEP_CUS_COUNT";
	public static String ALL_SLEEP_CUS_COUNT_DESC = "休眠客户";
//	public static String CHANNEL_NEW_CLIENT_RATE = "NEW_CLIENT_RATE";
//	public static String CHANNEL_NEW_CLIENT_RATE = "NEW_CLIENT_RATE";
//	public static String CHANNEL_NEW_CLIENT_RATE = "NEW_CLIENT_RATE";
//	public static String CHANNEL_NEW_CLIENT_RATE = "NEW_CLIENT_RATE";
//	public static String CHANNEL_NEW_CLIENT_RATE = "NEW_CLIENT_RATE";
//	public static String CHANNEL_NEW_CLIENT_RATE = "NEW_CLIENT_RATE";
//	public static String CHANNEL_NEW_CLIENT_RATE = "NEW_CLIENT_RATE";
	
	public static String[] getPlatformLineCharts() {
		String[] charts = {CLIENT_NUMBER, NEW_CLIENT, PV, JUMP_RATE, NEW_CLIENT_RATE};
		
		return charts;
	}
	
	public static String getPlatformLineChartDesc(String lineChart) {
		String result = null;
		
		if (lineChart.equals(CLIENT_NUMBER))
			result = CLIENT_NUMBER_DESC;
		else if (lineChart.equals(NEW_CLIENT))
			result = NEW_CLIENT_DESC;
		else if (lineChart.equals(OLD_CLIENT))
			result = OLD_CLIENT_DESC;
		else if (lineChart.equals(PV))
			result = PV_DESC;
		else if (lineChart.equals(JUMP_RATE))
			result = JUMP_RATE_DESC;
		else if (lineChart.equals(NEW_CLIENT_RATE))
			result = NEW_CLIENT_RATE_DESC;
		
		return result;
	}
}















